package com.koron.order.experiment.mapper;

import com.koron.order.experiment.bean.po.ExperimentReadyPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExperimentReadyMapper {

    ExperimentReadyPo queryById(String id);

    List<ExperimentReadyPo> queryList(ExperimentReadyPo experimentReady);

    int insert(ExperimentReadyPo experimentReady);

    int update(ExperimentReadyPo experimentReady);

    int deleteById(String id);

    int deleteByOrderId(String orderId);

    int insertBatch(@Param("list") List<ExperimentReadyPo> experimentReadyPoList);

    int updateBatch(@Param("list") List<ExperimentReadyPo> experimentReadyPoList);

    List<ExperimentReadyPo> queryByOrderId(@Param("experimentId") String orderId);

}
